#
#
#
# --------------------------------------


HOME=~/.dataxone

mkdir -p $HOME 2>/dev/null
echo "[INFO] Created Directory $HOME."

cat > $HOME/config <<EOF
# INSTALL_OS_USER:DATAXONE_BASE:DATAXONE_VERSION:LOAD_BALANCE(HA MODE):AUTO_START
dataxone:/data/dataxone:4.3.6:N:N

EOF
echo "[INFO] Fixed $HOME/config."


cat > $HOME/port <<EOF
# DATAXONE_BASE:tomcat:dataXoneTomcat:regd:DataXone_Query_Engine/bigdataQuery_Engine:DataXone_Query_Engine/query_db_engine:Manager_Node_Engine:yxad.mysql
/data/dataxone:8080:8081:6000:8880:9011:9998:65534

EOF

echo "[INFO] Fixed $HOME/port."

cat > $HOME/webapps <<EOF
# DATAXONE_BASE/<WEBAPP_PATH>:<WEBAPPS...>
/data/dataxone/tomcat/conf/server.xml:DSGWEB:permission:sbt_xcmp:icbc_automatic_flow_dsg_project-1.0.0
/data/dataxone/dataXoneTomcat/conf/server.xml:autoMaticEngineBoot-1.0.0
/data/dataxone/www/webapps:DSGWEB:permission:sbt_xcmp:icbc_automatic_flow_dsg_project-1.0.0:autoMaticEngineBoot-1.0.0

EOF

echo "[INFO] Fixed $HOME/webapps."


echo "Fixed OK."